package zuoye2;

public class Cylinder {
	private Circle c;
	private double h;

	public double getArea() {
		return c.getArea() * 2 + c.getCircumference() * h;
	}

	public double getVolume() {
		return c.getArea() * h;

	}
	public Circle getCircle() {
		return c;
	}
	
	public double getHeight() {
		return h;
	}
	Cylinder(double R,double H){
		h=H;
		c=new Circle(R);
	}
}
